import { jsLog } from '../utils/MyLog';
import { ClassForKeyName, addBridgeHandler } from './HapBridge'

export  abstract class CommonHandler implements ClassForKeyName {
  getKeyName(): string {
    return CommonHandler.name;
  }

  addMockToMap() {
    addBridgeHandler(new Mock());
  }
  abstract run(): any;
}

class Mock extends CommonHandler {
  run() {
    jsLog("you are using CommonHandler mock object");
  }
}
